//
//  Flight.swift
//  AirlineReservation
//
//  Created by Kevin on 2020/2/5.
//  Copyright © 2020 Kevin. All rights reserved.
//

import UIKit

class FlightInfo: NSObject {
    
    @objc var flightnumberid:String?
    @objc var flightname:String?
    @objc var departterminal:String?
    @objc var arrivalterminal:String?
    @objc var craft:String?
    @objc var food:Int = 0
    @objc var cabinname:String?
    @objc var ticketprice:Int = 0
    @objc var ticketcount:Int = 0
    @objc var luggage:Int = 0
    @objc var mileage:Int = 0
    @objc var miletime:String?
    
    init(dict:[String:Any]) {
        super.init()
        setValuesForKeys(dict)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override var description: String {
        return dictionaryWithValues(forKeys: ["flightnumberid","flightname","departterminal","arrivalterminal","craft","food","cabinname","ticketprice","ticketcount","luggage","mileage","miletime"]).description
    }
}
